
//------------------------------------------------------------------------------
pulse.content.createFile = function( oCallbackData, sFilePath, sTemplatePath )
{
	var sUrl = pulse.server.getCommandUrl( 'create_file', 'file=' + sFilePath );
	if ( sTemplatePath != null )
		sUrl += '&template=' + sTemplatePath;
	pulse.server.sendRequest( sUrl, oCallbackData );
}

//------------------------------------------------------------------------------
pulse.content.createDir = function( oCallbackData, sDirPath )
{
	var sUrl = pulse.server.getCommandUrl( 'create_dir', 'dir=' + sDirPath );
	pulse.server.sendRequest( sUrl, oCallbackData );
}

//------------------------------------------------------------------------------
pulse.content.removeFileOrDir = function( oCallbackData, sPath )
{
	var sUrl = pulse.server.getCommandUrl( 'remove_file_or_dir', 'path=' + sPath );
	pulse.server.sendRequest( sUrl, oCallbackData );
}

//------------------------------------------------------------------------------
pulse.content.rename = function( oCallbackData, sPath, sNewName )
{
	var sUrl = pulse.server.getCommandUrl( 'rename', 'path=' + sPath + '&new_name=' + sNewName );
	pulse.server.sendRequest( sUrl, oCallbackData );
}
